package com.fh.web.vo;

import java.util.List;

import com.fh.dto.PubDdv;
import com.fh.dto.PurPurview;

public class PurviewVo extends PurPurview{
	
	 /**
	  *子限点数量
	  */
	 private Integer childNum;
	 
	 private int state;  //返回状态
	 
	private List<PubDdv> purTypes;

	public List<PubDdv> getPurTypes() {
		return purTypes;
	}

	public void setPurTypes(List<PubDdv> purTypes) {
		this.purTypes = purTypes;
	}

	public Integer getChildNum() {
		return childNum;
	}

	public void setChildNum(Integer childNum) {
		this.childNum = childNum;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}
	 
   public static PurviewVo getPurviewVo(PurPurview purPurview){
	   PurviewVo purviewVo = new PurviewVo();
	   purviewVo.setPurId(purPurview.getPurId());
	   purviewVo.setPurCode(purPurview.getPurCode());
	   purviewVo.setPurName(purPurview.getPurName());
	   purviewVo.setPurValue(purPurview.getPurValue());
	   purviewVo.setParentPurId(purPurview.getParentPurId());
	   purviewVo.setPurType(purPurview.getPurType());
	   purviewVo.setUserId(purPurview.getUserId());
	   purviewVo.setCreateTime(purPurview.getCreateTime());
	   purviewVo.setNotes(purPurview.getNotes());
	   purviewVo.setIcon(purPurview.getIcon());
	   
	   return purviewVo;
   }
}
